<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Author: Rejeev Divakaran
  Date: 7/31/13
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div>
    <table>
        <tr>
            <th>Select</th><th>Title</th><th>Due Date</th><th>Your Rating</th><th>Avg Rating</th>
        </tr>
        <jsp:useBean id="issues" scope="request" type="java.util.List<ils.web.model.MyIssue>"/>
        <c:forEach var="issue" items="${issues}">
            <tr>
                <td><input type="checkbox" name="select_book"></td>
                <td>${issue.bookName}</td>
                <td>${issue.dueDate}</td>
                <td><input type="radio" value="1" name="book_rating"><input type="radio" value="2" name="book_rating">
                    <input type="radio" value="3" name="book_rating"><input type="radio" value="4" name="book_rating"><input type="radio" value="5" name="book_rating"></td>
                <td>${issue.avgRating}</td>
            </tr>
        </c:forEach>
    </table>
</div>